package com.wjw.mapper;

import com.wjw.model.Damage_single_table;
import com.wjw.model.Damage_type_stable;
import com.wjw.model.Road_type_table;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface DamageSingleTableMapper {
    List<Damage_single_table> findAll();
    List<Damage_single_table> findByPage(@Param("page") int page, @Param("limit") int limit);
    int add(Damage_single_table damage_single_table);
    int delete(int id);
    int change(Damage_single_table damage_single_table);
    Road_type_table findRoadTypeByName(String name);
    Road_type_table findRoadTypeById(int id);
    Damage_type_stable findDamageSByName(String name);
    Damage_type_stable findDamageSById(int id);
}
